@extends('admins.layouts.main')
@section('title')
    后台管理 | 咨询管理
@endsection

@section('title_left')
    帮助
@endsection

@section('content')
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <h4>最后修改时间  {{ $help->update_time }}</h4>
                <form action="updateHelp" method="POST">
                    <input type="hidden" value="{{ csrf_token() }}" name="_token">
                    <div class="x_title col-md-10 col-md-offset-1" id="content">
                        <script id="container" name="content" type="text/plain">
                            {!! $help->content !!}
                        </script>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content col-md-10 col-md-offset-1">
                        <div class="row">
                            <input type="submit" class="btn-primary btn update-btn" value="提交并修改">
                            <input type="button" class="btn-default btn reset-btn" value="重置" onclick="location.reload();">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection

@section('scripts')

    <!-- 配置文件 -->
    <script type="text/javascript" src="{{ URL::asset('admin/vendors/UE/ueditor.config.js') }}"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="{{ URL::asset('admin/vendors/UE/ueditor.all.min.js') }}"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
        window.onload = function () {
            setTimeout(function () {
                ue.setHeight(1000);
            }, 200)
        };
    </script>
@endsection